package com.zhongyu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhongyu.pojo.Permission;
import com.zhongyu.pojo.Role;
import com.zhongyu.vo.TreeNode;

import java.util.List;

public interface PermissionService extends IService<Permission> {

    List<TreeNode> search4Tree(Integer id);

    void grant(Integer roleId,Integer[] ids);

    List<Role> searchAll(Integer id);

    List<String> searchPermCodes(Integer roleId);

    List<Permission>searchMenuList();
}
